from django.conf.urls import url
from web.views import customer, payment, account
from rbac.views import permission

urlpatterns = [

    url(r'^customer/list/$', customer.customer_list, name='customer_list'),
    url(r'^customer/add/$', customer.customer_add, name='customer_add'),
    url(r'^customer/edit/(?P<cid>\d+)/$', customer.customer_edit, name='customer_edit'),
    url(r'^customer/del/(?P<cid>\d+)/$', customer.customer_del, name='customer_del'),
    url(r'^customer/import/$', customer.customer_import, name='customer_import'),
    url(r'^customer/tpl/$', customer.customer_tpl, name='customer_tpl'),

    url(r'^payment/list/$', payment.payment_list, name='payment_list'),
    url(r'^payment/add/$', payment.payment_add, name='payment_add'),
    url(r'^payment/edit/(?P<pid>\d+)/$', payment.payment_edit, name='payment_edit'),
    url(r'^payment/del/(?P<pid>\d+)/$', payment.payment_del, name='payment_del'),

    # 登录界面
    url(r'^login/$', account.login, name='login'),
    # # 用户表中角色的展示
    # url(r'^roles/list/$', permission.roles_list, name='roles_list'),
    # # 角色添加
    # url(r'^roles/add/$', permission.roles_add, name='roles_add'),
    # # 角色编辑
    # url(r'^roles/edit/(?P<roles_id>\d+)/$', permission.roles_edit, name='roles_edit'),
    # # 角色删除
    # url(r'^roles/del/(?P<roles_id>\d+)/$', permission.roles_del, name='roles_del'),

]
